package com.taobao.api.domain;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.util.json.JSONValidatingReader;
import com.taobao.api.TaobaoObject;


/**
 * 接口返回model
 *
 * @author top auto create
 * @since 1.0, null
 */
public class Result extends TaobaoObject {

	private static final long serialVersionUID = 7451227429139695157L;

	/**
	 * code
	 */
	@ApiField("code")
	private String code;

	/**
	 * 返回素材id
	 */
	@ApiField("data")
	private String data;

	/**
	 * 错误码
	 */
	@ApiField("error_code")
	private String errorCode;

	/**
	 * 错误信息
	 */
	@ApiField("error_msg")
	private String errorMsg;

	/**
	 * message
	 */
	@ApiField("message")
	private String message;

	/**
	 * errorCode
	 */
	@ApiField("message_code")
	private Long messageCode;

	/**
	 * model
	 */
	@ApiField("model")
	private String model;

	/**
	 * 是否成功
	 */
	@ApiField("success")
	private Boolean success;


	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}

	public String getData() {
		return this.data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public void setDataString(String data) {
		this.data = data;
	}
	

	public String getErrorCode() {
		return this.errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public void setErrorCodeString(String errorCode) {
		this.errorCode = errorCode;
	}
	

	public String getErrorMsg() {
		return this.errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	public void setErrorMsgString(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	

	public String getMessage() {
		return this.message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

	public Long getMessageCode() {
		return this.messageCode;
	}
	public void setMessageCode(Long messageCode) {
		this.messageCode = messageCode;
	}

	public String getModel() {
		return this.model;
	}
	public void setModel(String model) {
		this.model = model;
	}

	public Boolean getSuccess() {
		return this.success;
	}
	public void setSuccess(Boolean success) {
		this.success = success;
	}

}
